import type { IllnessTime } from '@/enums'
import { flagOptions, illnessTimeOptions } from '@/services/constants'

// 获取患病时间
export const getIllnessTime = (time: IllnessTime) =>
  illnessTimeOptions.find((item) => item.value === time)?.label

// 获取就诊过
export const getConsultFlag = (flag: 0 | 1) =>
  flagOptions.find((item) => item.value === flag)?.label
